package cn.tedu.ivos.application.service;

import cn.tedu.ivos.application.pojo.dto.ApplicationQuery;
import cn.tedu.ivos.application.pojo.dto.ApplicationSaveParam;
import cn.tedu.ivos.application.pojo.vo.ApplicationVO;

import java.util.List;

public interface ApplicationService {
    /**
     * 新增保存申请单
     * @param applicationSaveParam
     */
    void save(ApplicationSaveParam applicationSaveParam);

    List<ApplicationVO> selectApplication(ApplicationQuery applicationQuery);

    void cancle(Long id);

    /**
     * 分配车辆
     * @param applicationId
     * @param vehicleId
     */
    void distribute(Long applicationId, Long vehicleId);

    /**
     * 还车
     * @param applicationId
     * @param vehicleId
     */
    void back(Long applicationId, Long vehicleId);
}
